#ifndef IXRESOURCE
#define IXRESOURCE
#include "XComponent.h"
#include "XModStream.h"
class XM_ENTRY XResource : public XObject
{
protected:
	string m_file;
	string m_name;
public:
	virtual bool LoadResource(XModFileStream file_stream) = 0;
	virtual XResource* operator=(const XResource*){
		return this;
	};
	virtual void SetName(string name){
		m_name = name;
	}
	virtual string GetName(){
		return m_name;
	}
};
#endif

